/**
 * Copyright &copy; 2012-2016 <a href="https://istep.lczyfz.com">Istep</a> All rights reserved.
 */
package com.lczyfz.istep.modules.mobile.entity;

import org.hibernate.validator.constraints.Length;

import com.lczyfz.istep.common.persistence.DataEntity;

/**
 * 移动地图Entity
 *
 * @author hpp
 * @version 2017-03-29
 */
public class MobileMap extends DataEntity<MobileMap> {

    private static final long serialVersionUID = 1L;
    private String longitude;        // 经度
    private String latitude;        // 纬度
    private String fileName;        // 上传文件名
    private String user;        // 上传者

    public MobileMap() {
        super();
    }

    public MobileMap(String id) {
        super(id);
    }

    @Length(min = 1, max = 64, message = "经度长度必须介于 1 和 64 之间")
    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    @Length(min = 0, max = 64, message = "纬度长度必须介于 0 和 64 之间")
    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    @Length(min = 0, max = 512, message = "上传文件名长度必须介于 0 和 512 之间")
    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    @Length(min = 1, max = 512, message = "上传者长度必须介于 1 和 512 之间")
    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

}